using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FxManager : MonoBehaviour
{
    public static FxManager Instance;
    public GameObject m_WinFx;
    public GameObject m_LoseFx;

    public void PlayWinFx()
    {
        GameObject.Instantiate(m_WinFx);
    }

    public void PlayLoseFx()
    {
        GameObject.Instantiate(m_LoseFx);
    }

    //=========================================公私分界线==================================================

    void Awake()
    {
        DontDestroyOnLoad(gameObject);
        Instance = this;
    }
}
